/******************************************************************************
 * @File name   :      ReportPocController.java
 *
 * @Author      :      <Jianxi Wu>
 *
 * @Date        :      2011-4-12
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2011-4-12 下午02:08:59        <Jianxi Wu>     1.0            Initial Version
 *****************************************************************************/
package com.cap.bts.framework.sample.report.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 */
@Controller
public class ReportPocController {
     /**
      * 
      * @Date        :      2011-12-7
      * @return
      */
    @RequestMapping(value="/reportPoc1Display")
    public String reportPoc1Display(){
        return "sample/reportPocDisplay";
    }
    /**
     * 查询
     * @Date        :      2011-12-7
     * @param nameStartText
     * @param model
     * @param request
     * @param response
     * @return
     */
    @RequestMapping(value="/reportPoc1View")
    public ModelAndView reportPoc1View(String nameStartText, Model model
        , HttpServletRequest request, HttpServletResponse response){
        System.out.println(nameStartText);
        if(null == nameStartText){
            nameStartText = "";
        }
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("reportPoc1View");
        modelAndView.addObject("nameStartText", nameStartText);
        
        return modelAndView;
    }
}
